package com.cyanz.dao;

import com.cyanz.entity.Student;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface StudentMapper {

    int addBatchStudent(List<Student>studentList);

    int deleteBatchById(Integer [] ids);

    void update(Student student);

    List<Student> list(@Param("name")String name,@Param("age")Integer age,@Param("password")String password);

    List<Student> listAge(@Param("name")String name,@Param("start")Integer start,@Param("end")Integer end,@Param("password")String password);

    Student getStuAndAddressById(@Param("id")Integer id);

    Student getStuAndAddressById2(@Param("id")Integer id);

    Student getStuAndCourseById(@Param("id")Integer id);
}
